package com.qy127.dao.impl;

import com.qy127.dao.DeptDao;
import com.qy127.util.JDBCUtil;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class DeptDaoImpl implements DeptDao {
    @Override
    public List<Map<String, Object>> queryAllDeptDname() {
        String sql="select deptid,dname from t_dept";
        List<Map<String, Object>> maps = JDBCUtil.queryListMap(sql);
        if (maps.size()>0){
            return maps;
        }
        return null;
    }
}
